switch: Use GtkGesture to handle input events
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 19 May 2014 14:08:56 +0000 (16:08 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 May 2014 17:54:32 +0000 (19:54 +0200)
commit8f20780fb936ced3d4a886d862dfe165798b43bb
tree796156f1d4cf85b3abcc558c54698bc43cf91d17
parenta47d0406a78f7674ec0731d5c6dd4de98f470496
switch: Use GtkGesture to handle input events

A pan gesture is used to handle switch dragging, which is only triggered
by horizontal panning movements. A multipress gesture handles the cases
where clicking without dragging happens, just toggling the switch.
gtk/gtkswitch.c